package com.gary.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author peng_rui
 * @date 2022/7/6
 */
@Configuration
public class MyConfig {

    @Bean("myProperties")
    @ConfigurationProperties("spring.redis")
    public MyRedisProperties myRedisProperties() {
        return new MyRedisProperties();
    }
}
